package com.jt.service;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Administrator on 2017/3/30.
 */
@Component
public class HystrixGreetFallbackService implements GreetService {

    @Override
    public String greet() {
        return "error";
    }

    @Override
    public String add(@RequestParam("name") String name) {
        return "error";
    }

}
